Skip to content

gh-65961: Document __cached__ removal in What's New & clarify references to it - #156053

Merged
encukou merged 2 commits into
python:mainfrom
encukou:removals-315-cached
Aug 20, 2026
Merged

gh-65961: Document __cached__ removal in What's New & clarify references to it#156053
encukou merged 2 commits into
python:mainfrom
encukou:removals-315-cached

Conversation

@encukou

@encukou encukou commented Aug 19, 2026

Copy link
Copy Markdown
Member
  • Move deprecation notice to Whatsnew change list.
    • Add a note that __loader__ & __package__ are next. (These also link to relevant docs.)
  • Clarify references to __cached__ now that the term doesn't link to its docs.
  • Move the .. versionchanged from __file__ docs to the top level, and remove the historical .. deprecated-removed:: (fixes __cached__ deprecation notice under __file__ #145299).

…eferences to it

- Move deprecation notice to change list
- Clarify references to ``__cached__`` now that the term it doesn't link to its docs.
- Move the ``.. versionchanged`` from ``__file__`` docs to the top level.
@read-the-docs-community

read-the-docs-community Bot commented Aug 19, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34155109 | 📁 Comparing 48cb623 against main (20e6c2f)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

@encukou encukou added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 19, 2026
Pending removal in Python 3.15
------------------------------

* The import system:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These entries usually stay, they aren't removed. In older What's New entries the deprecation will now be missing.

@encukou
encukou merged commit 228b1bf into python:main Aug 20, 2026
30 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@encukou
encukou deleted the removals-315-cached branch August 20, 2026 15:03
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 20, 2026
@bedevere-app

bedevere-app Bot commented Aug 20, 2026

Copy link
Copy Markdown

GH-156123 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

__cached__ deprecation notice under __file__

3 participants